﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;

namespace Xyz.Web.Reservation.Models
{
    [IsSame("Password", "ConfirmPassword", ErrorMessage = "Password and Confirm Password must be the same.")]
    public class CustomerModel
    {
        public int CustomerId { get; set; }
        public int RoleId { get; set; }

        [DisplayName("User Name : ")]
        [Required(ErrorMessage = "Please enter User Name.")]
        public string UserName { get; set; }

        [DisplayName("Password : ")]
        [Required(ErrorMessage = "Please enter Password.")]
        public string Password { get; set; }

        [DisplayName("Confirm Password : ")]
        [Required(ErrorMessage = "Please enter Confirm Password.")]
        public string ConfirmPassword { get; set; }

        [DisplayName("Fist Name : ")]
        [Required(ErrorMessage = "Please enter First Name.")]
        public string FirstName { get; set; }

        [DisplayName("Last Name : ")]
        [Required(ErrorMessage = "Please enter Last Name.")]
        public string LastName { get; set; }

        [DisplayName("Gender : ")]
        public string Gender { get; set; }

        [DisplayName("Date of Birth : ")]
        [Required(ErrorMessage = "Please enter Date of Birth.")]
        public DateTime DateOfBirth { get; set; }

        public List<BookingModel> Bookings { get; set; }
	}
}